<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/header.jsp"%>
<html>
<body class="easyui-layout list_body">
	<form id="logAbstractForm" name="logAbstractForm">
		<div class="list_body_north" data-options="region:'north'" border="false">
			<!-- 查询表单 -->
			<div style="padding: 3px" class="easyui-panel datagrid-toolbar">
				<div>
					<span>申请起始日期:</span> 
					<input type="text" id="apply_startDate" value="${currentDate}" name="apply_startDate" class="easyui-datebox" data-options="editable:false"/>
					<span>申请结束日期:</span> 
					<input type="text" id="apply_endDate" value="${currentDate}" name="apply_endDate" class="easyui-datebox" data-options="editable:false"/>
					<span>清算起始日期:</span> 
					<input type="text" id="audit_startDate"  name="audit_startDate" class="easyui-datebox" data-options="editable:false"/>
					<span>清算结束日期:</span> 
					<input type="text" id="audit_endDate"  name="audit_endDate" class="easyui-datebox" data-options="editable:false"/>
					<br/>
					<span>会员编号:</span>
					<input type="text" id="custom_no" name="custom_no" class="easyui-textbox" /> 
					<span>手机号:</span>
					<input type="text" id="phone" name="phone" class="easyui-textbox" /> 
					<span>会员姓名:</span>
					<input type="text" id="name" name="name" class="easyui-textbox" /> 
					<span>到账银行卡号:</span> 
					<input type="text" id="settle_acct" name="settle_acct" class="easyui-textbox" /> 
					<br/>
					<span>账户类型:</span>
					<code:codeSelect name="account_type" id="account_type" code_type="ACCOUNT_TYPE" showSelect="true" ></code:codeSelect>
					<span>清算标志:</span>
					<code:codeSelect name="audit_stlflag" id="audit_stlflag" code_type="STLST" showSelect="true" ></code:codeSelect>
					<span>提现响应码:</span>
					<code:codeSelect name="rspcode" id="rspcode" code_type="RSPCODE" showSelect="true" ></code:codeSelect>
					<span>清算响应码:</span>
					<code:codeSelect name="stlcode" id="stlcode" code_type="STL_CODE" showSelect="true" ></code:codeSelect>
					<a href="#" class="easyui-linkbutton btn" iconCls="icon-search" onclick="doSearch()">查询</a> 
					<a href="#" class="easyui-linkbutton btn" iconCls="icon-reload" onclick="resetForm()">重置</a>
				</div>
			</div>
			<jiepos:buttonOperateTag menuCode="${menuCode }"></jiepos:buttonOperateTag>
		</div>
		<div data-options="region:'center'" border="false" class="list_body_center">
			<!-- 表格 -->
			<table id="logAbstractTableId" fit="true"></table>
		</div>
	</form>
</body>
<script type="text/javascript">
	var grid;
	$(function() {
		/*加载表格数据*/
		grid = $("#logAbstractTableId").jpgrid({
			url : "getLogAbstractListJson.do",
			columns : [ {
				title : "申请时间",
				field : "APPLY_DT",
				align : 'center',
				width : '150px'
			}, {
				title : "申请单号",
				field : "APPLY_NO",
				align : 'center'
			}, {
				title : "会员编号",
				field : "CUSTOM_NO",
				align : 'center'
			}, {
				title : "会员名称",
				field : "NAME",
				align : 'center',
			}, {
				title : "所属机构",
				field : "INS_CN_NM",
				align : 'center'
			}, {
				title : "账户类型",
				field : "ACCOUNT_TYPE",
				align : 'center',
				width : '100px'
			}, {
				title : "业务名称",
				field : "SERVICE_NAME",
				align : 'center'
			}, {
				title : "业务参数",
				field : "PARAM_NAME",
				align : 'center'
			}, {
				title : "到账银行卡号",
				field : "SETTLE_ACCT",
				align : 'center',
				width : '180px'
			}, {
				title : "申请金额",
				field : "APPLY_AMT",
				align : 'center',
				width : '80px'
			}, {
				title : "提现手续费",
				field : "WITHDRAW_FEE",
				align : 'center',
				width : '80px'
			}, {
				title : "清算金额",
				field : "STL_AMT",
				align : 'center',
				width : '80px'
			}, {
				title : "清算时间",
				field : "AUDIT_DT",
				align : 'center'
			},{
				title : "清算标志",
				field : "AUDIT_STLFLAG",
				align : 'center'
			}, {
				title : "提现响应码",
				field : "RSP_CODE",
				align : 'center',
				width : '280px'
			},{
				title : "清算响应码",
				field : "STL_CODE",
				align : 'center',
				width : '280px'
			}]
		});
        doSearch();
	});

	function doSearch() {
		grid.load({
			custom_no : $('#custom_no').val(),
			phone : $('#phone').val(),
			name : $('#name').val(),
			settle_acct : $('#settle_acct').val(),
			apply_startDate : $('#apply_startDate').val(),
			apply_endDate : $('#apply_endDate').val(),
			audit_startDate : $('#audit_startDate').val(),
			audit_endDate : $('#audit_endDate').val(),
			account_type : $('#account_type').val(),
			audit_stlflag : $('#audit_stlflag').val(),
            rspcode : $('#rspcode').val()
		});
	}
    function exportFile(url){
        commonFileDownload(url, "logAbstractForm");
    }
</script>
</html>
